package it.tommasocortonesi.scjp.cap1;

public enum Enumeration001 {ONE, TWO}

class EnumerationClass{
	enum Enumeration003{A, B};
	public Enumeration001 enumerationAccess1;
	public Enumeration003 enumerationAccess3;
}

class enumerationClassTest{
	public static void main(String[] args) {
		EnumerationClass ec = new EnumerationClass();
		ec.enumerationAccess1 = Enumeration001.ONE;
		ec.enumerationAccess3 = EnumerationClass.Enumeration003.A;
		
		/* illegal! */
		// ec.enumerationAccess3 = Enumeration003.A;
		// altrimenti possiamo fare con import!
	}
}